From: LLVM Packaging Team Date: Fri, 8 Jan 2021 11:48:25 +0000 (+0000) Subject: impl-path-hurd X-Git-Tag: archive/raspbian/1%9.0.1-16+rpi1^2~24 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=f76b4ccda870d3376769e74ba0bc298c391e1780;p=llvm-toolchain-9.git impl-path-hurd =================================================================== Gbp-Pq: Topic hurd Gbp-Pq: Name impl-path-hurd.diff --- diff --git a/llvm/lib/Support/Unix/Path.inc b/llvm/lib/Support/Unix/Path.inc index 27c8a1bc9..e83fafb87 100644 --- a/llvm/lib/Support/Unix/Path.inc +++ b/llvm/lib/Support/Unix/Path.inc @@ -203,7 +203,7 @@ std::string getMainExecutable(const char *argv0, void *MainAddr) { // If we don't have procfs mounted, fall back to argv[0] if (getprogpath(exe_path, argv0) != NULL) return exe_path; -#elif defined(__linux__) || defined(__CYGWIN__) +#elif defined(__linux__) || defined(__CYGWIN__) || defined(__GNU__) char exe_path[MAXPATHLEN]; StringRef aPath("/proc/self/exe"); if (sys::fs::exists(aPath)) {